From: Richard M. Stallman Date: Wed, 28 Nov 2001 13:08:40 +0000 (+0000) Subject: (locate): Put point at first matching file rather than top of buffer. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~60167 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=bca3a805d5579581e24112b2ad58cd82a7fdc3a7;p=emacs.git (locate): Put point at first matching file rather than top of buffer. --- diff --git a/lisp/locate.el b/lisp/locate.el index 6d5967a5750..12eb08a0326 100644 --- a/lisp/locate.el +++ b/lisp/locate.el @@ -240,6 +240,7 @@ With prefix arg, prompt for the locate command to run." (switch-to-buffer-other-window locate-buffer-name)) (run-hooks 'dired-mode-hook) + (dired-next-line 2) ;move to first matching file. (run-hooks 'locate-post-command-hook) ) )